/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.own.dao;

import com.jeesite.common.dao.CrudDao;
import com.jeesite.common.datasource.DataSourceHolder;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.own.entity.OwnMedicineReceiptInformation;

import java.util.List;

/**
 * 药材收获信息DAO接口
 * @author F
 * @version 2019-09-27
 */
@MyBatisDao(dataSourceName = DataSourceHolder.EMPTY)
public interface OwnMedicineReceiptInformationDao extends CrudDao<OwnMedicineReceiptInformation> {

    OwnMedicineReceiptInformation findById(String id);

    /**
     * 根据种植信息id查询
     * @param plantId
     * @return
     */
    List<OwnMedicineReceiptInformation> findByPlantId(String plantId);

    /**
     * 更新检验情况
     * @param id
     * @param type
     * @return
     */
    long updateInspectionSituation(String id, String type);
	
}